package cn.walls1717.ggkt.vod.mapper;


import cn.walls1717.ggkt.model.vod.Course;
import cn.walls1717.ggkt.vo.vod.CoursePublishVo;
import cn.walls1717.ggkt.vo.vod.CourseVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 课程Mapper
 *
 * @author walls1717
 * @since 2022/07/14
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 根据课程id查询发布课程信息
     * @param id 课程id
     * @return 发布课程信息
     */
    CoursePublishVo selectCoursePublishVo(Long id);

    /**
     * 根据课程id查询课程详情
     * @param courseId 课程id
     * @return 课程信息
     */
    CourseVo selectCourseVoById(Long courseId);

    //List<CourseDTO> getPageCourse(Integer current, Integer pageSize);

}
